package cn.edu.xust.service;


import cn.edu.xust.Ro.PieData;
import cn.edu.xust.configuration.exception.Default200Exception;
import cn.edu.xust.entity.SysUserEntity;
import cn.edu.xust.util.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author ufo
 * @email 2575829997@qq.com
 * @date 2022-09-06 17:32:09
 */
public interface SysUserService extends IService<SysUserEntity> {

    PageUtils queryPage(Map<String, Object> params);

    SysUserEntity getByNameAndPwd(String username, String pwd);


    SysUserEntity getByName(String name);


    boolean updatePwd(Integer id, String newpwd);
    boolean updatePwdNickName(Integer uid, String pwd, String nickname);

    SysUserEntity getByIdNameAndPwd(Integer id, String cname, String oldpwd);

    /**
     * 获取某个账户下直接管理的账户
     */
    List<SysUserEntity> getdirectListByUser(SysUserEntity byNameAndPwd);

    /**
     * 获取某个账户下可管理的账户
     */
    List<SysUserEntity> getListByUser(SysUserEntity byNameAndPwd);




    List<SysUserEntity> getByIds(List<Integer> uids);

    boolean updateFbt(Integer uid, String jsonString);


    Map<String, String> getgroupbymaikerid(List<Integer> makerids);

}

